package com.xwx;

public class Teacher {
    // 属性
    private String teaName;
    private int teaAge;


    public Teacher() {

    }
    public void doTeaching(){
        System.out.println("I am teaching");
    }
    public void doPlaying(){
        System.out.println("I am playing");
    }

    public String getTeaName() {
        return teaName;
    }

    public void setTeaName(String teaName) {
        this.teaName = teaName;
    }

    public int getTeaAge() {
        return teaAge;
    }

    public void setTeaAge(int teaAge) {
        this.teaAge = teaAge;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "teaName='" + teaName + '\'' +
                ", teaAge=" + teaAge +
                '}';
    }

    public Teacher(String teaName, int teaAge) {
        this.teaName = teaName;
        this.teaAge = teaAge;
    }

}